package com.lzy.cloud.turbine;

import org.springframework.boot.Banner;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.turbine.EnableTurbine;
import org.springframework.context.annotation.Configuration;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ellengou
 * Date: 2018-03-14
 * Time: PM 7:19
 *
 * @author ellengou
 */
@Configuration
@EnableAutoConfiguration
@EnableTurbine
@EnableDiscoveryClient
@SpringBootApplication
@EnableHystrix
public class LzyCloudTurbineApplication {
    public static void main(String[] args) {
//        SpringApplication.run(LzyCloudTurbineApplication.class, args);
        new SpringApplicationBuilder(LzyCloudTurbineApplication.class).bannerMode(Banner.Mode.LOG).run(args);
    }
}
